package com.hifar.test.task.pojo.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hifar.plat.AopOption.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author zhuWeiWei
 * @description 分配设备对象
 * @date 2025/5/27 15:47
 */
@Data
@ApiModel("分配设备对象")
public class AddTestVO {

    @ApiModelProperty("任务id")
    @NotEmpty(message = "请选择一条数据!")
    private List<String> taskIdList;

    @ApiModelProperty("设备id")
    private String equipId;

    @ApiModelProperty("预计开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date predictStartTime;

    @ApiModelProperty("预计时长")
    private BigDecimal predictUseTime;

    @ApiModelProperty("预计时长")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date predictEndTime;

    @ApiModelProperty("密级")
    @Dict(dictCode = "hf_sys_datasecret")
    private Integer secretLevel;

}
